package by.kniazhych.core.server.local.events {
	
	import by.kniazhych.core.server.local.core.IMotion;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Boutylin Mikhail
	 */
	public class RequestMotionEvent extends Event {
		
		public static const REQUEST_MOTION:String = "requestMotion";
		
		private var _motion:IMotion;
		
		public function RequestMotionEvent(type:String, motion:IMotion, bubbles:Boolean=false, cancelable:Boolean=false) { 
			super(type, bubbles, cancelable);
			_motion = motion;
		} 
		
		public override function clone():Event { 
			return new RequestMotionEvent(type, motion, bubbles, cancelable);
		} 
		
		public override function toString():String { 
			return formatToString("RequestMotionEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
		public function get motion():IMotion { return _motion; }
		
	}
	
}